package org.example.ioc_demo.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

//@Controller作为程序的入口，spring 源码中会有对不同注解的扫描
@Controller
//@Service
@ResponseBody
public class TestController {
    @RequestMapping("/test")
    public String test() {
        return "测试controller与其他注解的区别";
    }
}
